﻿@model UI.Models.Catalog.ItemDetailsViewModel
@{
    ViewBag.Title = "Item Details";
}
<h2>@Model.ProductName @Model.Name</h2>
<table>
    <tr>
        <td>
            <p>
                <img  src="@Url.Content(Model.PictureFilePath)" alt="picture of product"/></p>
            <p>
                @Html.DisplayTextFor(c => c.ProductDescription)</p>
        </td>
        <td>
            <table>
                <tr>
                    <td class="label">
                        @Html.LabelFor(c => c.Price) :
                    </td>
                    <td>
                        @Html.DisplayTextFor(c => c.Price)
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        @Html.LabelFor(c => c.Quantity) :
                    </td>
                    <td>
                        @Html.DisplayTextFor(c => c.Quantity)
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<p>
    <a href="@Url.Action("AddItem", "ShoppingCart", new  {itemId = Model.ItemId})"  style="position:relative ; right: -10% " >
        <img src="@Url.Content("~/images/buttonAdd.gif")" alt="Add to Shopping Cart"  style="border: 0 "/></a>
</p>
